package com.byit.mapper;


import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byit.domain.AppMessageNotice;
import com.byit.domain.AppNews;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 新闻资讯
 *
 * @author lxp
 */
@Repository
public interface AppMessageNoticeMapper extends BaseMapper<AppMessageNotice> {

    /**
     * 逻辑删除新闻资讯信息
     *
     * @param params
     */
    void delAppMessageNoticeById(Map<String, Object> params);

    /**
     * 查询新闻资讯列表
     *
     * @param pageInfo
     * @param params
     * @return
     */
    List<JSONObject> selectAppMessageNoticeAll(Page<AppMessageNotice> pageInfo, Map<String, Object> params);

    /**
     * App审核过的消息通知
     * @param pageInfo
     * @param params
     * @return
     */
    List<JSONObject> selectAppMessageNoticeIsCheck(Page<AppMessageNotice> pageInfo, Map<String, Object> params);

    List<JSONObject> selectAppMessageNoticeList();

    /**
     * <!--查询系统通知最新5条-->
     * @param params
     * @return
     */
    List<JSONObject> selectSystemMessage(Map<String, Object> params);

    /**
     *     <!--获取系统通知每种最新消息-->
     * @param params
     * @return
     */
    List<JSONObject> selectNesestMessage(Map<String, Object> params);

    List<JSONObject> selectNoticePage(Page<AppMessageNotice> pageInfo, Map<String,Object> params);
}